const exportFile= function (fileName,suffix, content, blobOptions){
	blobOptions = blobOptions || {};
	var blob = new Blob([content], blobOptions);
	var a = document.createElement('a');
	a.innerHTML = fileName;
	
	// 指定生成的文件名
	a.download = fileName+Date.parse(new Date())+'.'+suffix;
	a.href = URL.createObjectURL(blob);
	
	document.body.appendChild(a);
	
	var evt = document.createEvent("MouseEvents");
	evt.initEvent("click", false, false);
	
	a.dispatchEvent(evt);
	
	document.body.removeChild(a);
};
export default exportFile;
		 